<template>
	<view>
		<view class="u-m-t-10 u-p-20 bg_FFFFFF">
			<view class="u-weight">快递公司：{{list.express_name}}</view>
			<view class="u-m-t-20">快递单号：{{list.transport_no}}</view>
		</view>
		<view class="u-p-30">
			<u-time-line>
					<u-time-line-item nodeTop="2" v-for="(item,index) in list.data" :key="index">
						<template v-slot:content>
							<view class="u-m-l-20 u-p-20 bg_FFFFFF u-b-r-10">
								<view class="u-order-title u-font-26">{{item.context}}</view>
								<view class="u-order-time u-font-20 u-m-t-20" style="color: #898989;">{{item.time}}</view>
							</view>
						</template>
					</u-time-line-item>
				</u-time-line>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				order_sn:'',
				list:[]
			}
		},
		onLoad(o) {
			this.order_sn=o.order_sn
		},
		onShow() {
			this.get_express_info()
		},
		methods: {
			get_express_info() {
				this.$api.get_express_info({order_sn:this.order_sn}, res => {
					if (res.data.code == 1) {
						this.list=res.data.data
					}
				})
			},
		}
	}
</script>

<style scoped>
page{
	background-color: #f5f5f5;
}
</style>
